
// Copyright (C) 2007 Richard Uhler
// This file is part of Esiply.
//
// Esiply is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License, Version 2,
// as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.


#ifndef _NULL_H_
#define _NULL_H_

// From Ecma 8.2
// The Null type has exactly one value, called null.

#include "Value.h"
#include "ValueType.h"

class Null : public Value
{
public:
    virtual ValueType getType() const;
    virtual Boolean* toBoolean();
    virtual Number* toNumber();
    virtual String* toString();

    // Here is an instance of the null value you may use however you like
    static Value* null;
};

#endif//_NULL_H_

